package kruispunt;

public class Baan {
	
	private int baanID;
	private boolean triggered = false;
	private int turnsSkipped = 0;
	
	public Baan (int baanID) { // constructor, geeft de Baan zijn naam.
		this.baanID = baanID;
	}
	
	public int getBaanID() { 
		return baanID;
	}
	
	public int getPriority() { 		
		return turnsSkipped;
	}

	public void doTrigger() {
		triggered = true;
	}
	
	public void addTurn() {
		if (triggered) turnsSkipped++;
	}
	
	public void resetTurns() {
		triggered = false;
		turnsSkipped = 0;
	}	
}
